package c03.thread.api.sleep;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.TimeUnit;

@Slf4j(topic = "c.TimeUnitTest")
public class TimeUnitTest {
    public static void main(String[] args) throws InterruptedException {
        log.debug("start");
        TimeUnit.SECONDS.sleep(1); //相对于Thread.sleep更加直观
        log.debug("end");
    }
}
